import React from "react";

export default function MyApp() {
  return (
    <div>
      <h1>Counters that update separately</h1>
      <MyButton />
      <MyButton />
    </div>
  );
}

function MyButton() {
  function handleClick() {
    console.log(React.useState(0));
  }

  return <button onClick={handleClick}>Clicked times</button>;
}
